const _import =
  process.env.NODE_ENV === 'production'
    ? file => () => import('@/views/' + file + '.vue')
    : file => require('@/views/' + file + '.vue').default

export default [
  {
    path: '/password',
    component: _import('password/password'),
    name: 'password',
    meta: { title: '找回密码', noLogin: true }
  },
  {
    path: '/password/phone',
    component: _import('password/pwd-phone-item'),
    name: 'phone',
    meta: { title: '手机找回密码', noLogin: true }
  },
  {
    path: '/password/mail',
    component: _import('password/pwd-mail-item'),
    name: 'mail',
    meta: { title: '邮箱找回密码', noLogin: true }
  },
  {
    path: '/password/question',
    component: _import('password/pwd-question-item'),
    name: 'question',
    meta: { title: '密保找回密码', noLogin: true }
  }
]
